import colorDataList from '@/components/color_popout/colorData'
const state = {
    leftMenuMin: false, //左侧菜单最小化
    colorData: localStorage.getItem('colorData') ? JSON.parse(localStorage.getItem('colorData')) : colorDataList[0],
    isApply: { //准入申请
        isAdd: true,
        state: '',
        data: []
    },
    applyApprove: { //准入审计
        state: '',
        data: []
    },
};


const mutations = {
    SET_leftMenuMin(state, val) {
        state.leftMenuMin = val;
    },
    setColorData(state, data) {//设置主题数据
        localStorage.setItem('colorData', JSON.stringify(data));
        state.colorData = data;
    },
};

const actions = {

};

export default {
  namespaced: true,
  state,
  mutations,
  actions
};
